//
//  ThirdLogin.h
//  game
//
//  Created by yun on 2018/3/14.
//  Copyright © 2018年 YD. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <TencentOpenAPI/TencentOAuth.h>
#import "WXApi.h"

typedef NS_ENUM(NSInteger,LYLoginType) {
    LYLoginTypeWeChat = 0,// 微信
    LYLoginTypeTencent // qq
};

@interface ThirdLogin : NSObject<TencentSessionDelegate,WXApiDelegate>

+ (instancetype)sharedManager;


/**
 *  第三方登录获取信息
 *
 *  @param type     登录类型
 *  @param result   回调信息
 *
 */
- (void)getUserInfoWithLoginType:(LYLoginType)type result:(void (^)(id responseObject, NSError *error))result;

@end
